package com.dhl.prototypepattern.serialize;


import java.io.Serializable;

/**
 * @title: SerializeCopy
 * @Author danghailiang
 * @Date: 2022/7/28 22:05
 * @Version 1.0
 */
public class SerializeTom implements Serializable {
    /**
     * 序列化id
     */
    private static final long serialVersionUID = 12L;

    private Long id;
    private String name;
    private SerializeYang serializeYang;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public SerializeYang getSerializeYang() {
        return serializeYang;
    }

    public void setSerializeYang(SerializeYang serializeYang) {
        this.serializeYang = serializeYang;
    }

    public SerializeTom() {
    }

    public SerializeTom(Long id, String name, SerializeYang serializeYang) {
        this.id = id;
        this.name = name;
        this.serializeYang = serializeYang;
    }

    @Override
    public String toString() {
        return "SerializeTom{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", serializeYang=" + serializeYang +
                '}';
    }

}
